﻿/*------------------------------------------------
// File Description: OrderInventoryConfig DataBase Entity
// Author:			 Crane
// Create Time:		 2020-10-17 22:09:05
//------------------------------------------------*/

using System.Data.Entity;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 订单盘点配置
    /// </summary>
    [Table(nameof(OrderInventoryConfig))]
    public class OrderInventoryConfig : BaseEntity
    {
        private string _orderNo = string.Empty;
        private string _customerCode = string.Empty;
        private string _customerName = string.Empty;

        #region Public Property

        ///<Summary>
        /// 订单号
        ///</Summary>
        public string OrderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// 客户代码
        ///</Summary>
        public string CustomerCode
        {
            get { return string.IsNullOrWhiteSpace(_customerCode) ? string.Empty : _customerCode; }
            set { _customerCode = value; }
        }

        ///<Summary>
        /// 客户名称
        ///</Summary>
        public string CustomerName
        {
            get { return string.IsNullOrWhiteSpace(_customerName) ? string.Empty : _customerName; }
            set { _customerName = value; }
        }

        ///<Summary>
        /// 盘点天数
        ///</Summary>
        public int InventoryDays { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 
        /// </summary>
        public virtual DbSet<OrderInventoryConfig> OrderInventoryConfigs { get; set; }
    }
}